
/*-----------------About ME PAGE --------------------- */

/* ---------- ABOUT PAGE ---------- */
.about-hero {
  text-align: center;
  padding: 4rem 1rem;
}

.about-hero img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.about-hero h1 {
  font-size: 2rem;
}

.about-hero p {
  color: var(--gray);
}

/* SECTIONS */
.about-section {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.about-section h2 {
  margin-bottom: 1rem;
}

.about-section p {
  color: var(--gray);
  line-height: 1.7;
}

/* TAGS */
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.about-tags span {
  background: #020617;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* CERTIFICATES */
.cert-list {
  list-style: none;
  padding: 0;
}

.cert-list li {
  margin-bottom: 0.6rem;
  color: var(--gray);
}

/* CV */
.cv-section {
  text-align: center;
}

.cv-btn {
  display: inline-block;
  margin-top: 1rem;
  background: #4f46e5;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  text-decoration: none;
}

/* TIMELINE */
.timeline {
  border-left: 2px solid #4f46e5;
  padding-left: 1.5rem;
}

.timeline-item {
  margin-bottom: 1.5rem;
}

.timeline-item span {
  color: #4f46e5;
  font-weight: bold;
}

/* CTA */
.about-cta {
  text-align: center;
  padding: 4rem 1rem;
  background: #020617;
}

.about-cta a {
  display: inline-block;
  margin-top: 1rem;
  color: #4f46e5;
  text-decoration: none;
  font-weight: 500;
}

/*--------------------------------------------------------------------------------------------------------------------added new--*/
/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.about-tags.interactive span {
  cursor: pointer;
  transition: 0.3s;
}

.about-tags.interactive span:hover {
  background: #4f46e5;
  color: #fff;
  transform: translateY(-3px);
}

/* ---------- ABOUT MODAL ---------- */
.about-modal {
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.about-modal-content {
  background: #020617;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  border-radius: 16px;
  animation: scaleIn 0.3s ease;
}

.about-modal-content h3 {
  margin-bottom: 1rem;
}

.about-modal-content p {
  color: var(--gray);
  line-height: 1.7;
}



.btohome{
  padding: inherit;
}



/*------------------------------------------------close in the right -------------------------------------------------*/


  .about-modal-content {
  position: relative; /* مهم جدًا */
  background: #020617;
  padding: 2rem;
  border-radius: 12px;
  max-width: 500px;
}

/* زر الإغلاق */
.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;   /* 👈 هذا هو الحل */
  font-size: 1.5rem;
  color: #94a3b8;
  cursor: pointer;
  transition: 0.3s;
}

.close-btn:hover {
  color: #f8fafc;
}




/* START NEW Style of Certificates */
    .cert-preview {
  margin-top: 4rem;
  text-align: center;
}

.cert-preview h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.cert-subtitle {
  color: #94a3b8;
  margin-bottom: 2rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: auto;
}

.cert-card {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 14px;
  overflow: hidden;
  transition: 0.4s;
  cursor: pointer;
}

.cert-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.cert-card span {
  display: block;
  padding: 0.8rem;
  font-size: 0.9rem;
}

.cert-card:hover {
  transform: translateY(-6px);
  border-color: #4f46e5;
}

.view-all-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.7rem 1.5rem;
  background: transparent;
  border: 2px solid #4f46e5;
  color: #e5e7eb;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.3s;
}

.view-all-btn:hover {
  background: #4f46e5;
  color: white;
}

/* END    NEW Style of Certificates*/